v4 API: Forms and Landing Pages: Pagination and Total Count - #91
Conversation
|
@noelherrick @mercedesb The PHP SDK has always had a distinction between Forms and Landing Pages ( With the introduction of pagination support in the v4 API, I'm unsure what the best route here is:
Would love to have your input! |
@n7studios Thanks for calling this out. I have an open PR to be able to filter This should allow you to continue supporting It should be merged and deployed within the next day or so. |
noelherrick
left a comment
There was a problem hiding this comment.
Looks good - after Mercedes gets that PR merged and you start using those new params, we should be good to go.
That's awesome - thanks so much! |
|
|
@mercedesb Thanks so much! Would it be possible to add a boolean filter for I'm happy with the default behaviour of archived forms being included in results - but any option to filter them out in the API request would be fantastic, so that the Sorry for not spotting this sooner. |
Whoops, we shouldn't have changed behavior. I'll add a |
|
Ok, you can filter forms by status now. And it'll default to |
Awesome, thanks! @noelherrick have requested a re-review as a few changes since the initial PR, so would be great to have you check this over. |
Summary
Adds total count and pagination support for
get_formsandget_landing_pagesmethods.Testing
Existing tests pass. Tests for
get_resourcesmethod removed, as this method no longer exists, as the v4 API doesn't support thesubscription_formsendpoint, and each method (get_forms,get_landing_pages,get_tags) makes its own call toget.Checklist